package com.sense.kukoo.common.repo.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

@Parcelize
data class ExploreContentBean(
    val type: Int,
    var title	:String? = null,//标题	string

    //type = 2_X_3, 3_X_2时的数据
    var books: List<BookBean>? = null,
    var code	:String? = null,//编码(推荐栏编码)	string

    //type = 1_X_N时的数据
    var isFirst: Boolean = false,
    var book: BookBean? = null,
): Parcelable {

    companion object {
        val TYPE_2_X_3: Int = 0
        val TYPE_3_X_2: Int = 1
        val TYPE_1_X_N: Int = 2
    }

    fun itemType(): Int {
        return type
    }
}